package cn.hhy.org.service;

import cn.hhy.org.domain.Department;
import cn.hhy.org.query.DepartmentQuery;
import cn.hhy.utils.QueryResult;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IDepartmentService {
    //新增
    void save(Department department);
    //修改
    void update(Department department);
    //删除
    void delete(Long id);
    //查询一个
    Department loadById(Long id);
    //查询所有
    QueryResult<Department> loadAll(DepartmentQuery departmentQuery);

    List<Department> treeData();

    void PatchDelete(Long[] ids);
    List<Department> loadAll2();
}
